(function () {
  if (location.search) {
    let imgQuery = location.search.split("?")[1].split("=")[1];
    let bannerImg = document.querySelector(".banner").querySelector("img");
    bannerImg.src = `/page/product/img/productintro/intro-banner-${imgQuery}.png`;
    let recmmondImg = document.querySelector(".rec-main").querySelector("img");
    recmmondImg.src = `/page/product/img/productintro/intro-info-${imgQuery}.png`;
    let designImg = document
      .querySelector(".intro-main")
      .querySelectorAll("img");
    console.log(designImg);
    if (imgQuery * 1 === 2 || imgQuery * 1 === 3) {
      designImg[0].src = `/page/product/img/productintro/intro-design-${imgQuery}.png`;
      designImg[1].src = `/page/product/img/productintro/intro-design-${imgQuery}-1.png`;
    } else {
      designImg[0].src = `/page/product/img/productintro/intro-design-${imgQuery}.png`;
    }
  }
})();
